<template>
	<view class="lianxiWomen">
		<view class="title">
			<u-icon name="arrow-left" size="24" @click="back"></u-icon>
			<text style="margin-left: 24rpx;">联系我们</text>
		</view>
		<view class="lianxiwomenbox">
			<view class="lianxiwomenboxitem">
				<image class="lianxiwomenboxitemimg" src="http://sssx.nanjingyunpeng.cn/uploads/tupian/image/iph.png">
				</image>
				<view class="lianxiwomenboxitemtext">
					官方电话：{{official_mobile}}
				</view>
			</view>
			<view class="lianxiwomenboxitem">
				<image class="lianxiwomenboxitemimg" src="http://sssx.nanjingyunpeng.cn/uploads/tupian/image/wximg.png">
				</image>
				<view class="lianxiwomenboxitemtext">
					官方微信：{{official_wx}}
				</view>
			</view>
			<view class="ewmbox">
				<image class="ewmboximg" :src="wxewm"></image>
			</view>
			<view class="desc">
				扫描二维码或搜索微信号添加客户微信
			</view>
		</view>

	</view>
</template>

<script>
	import {
		config
	} from "@/api/api.js"
	export default {
		data() {
			return {
				official_mobile: "",
				official_wx: "",
				wxewm: ""
			}
		},
		onLoad() {
			this.configs();
		},
		methods: {
			async configs() {
				let res = await config()
				if (res.code == 1) {
					console.log("联系我们", res)
					this.official_mobile = res.data.official_mobile
					this.official_wx = res.data.official_wx
					this.wxewm = res.data.official_wx_img
				}
			},
			back() {
				uni.navigateBack({
					delta: 1
				});

			}
		}
	}
</script>

<style scoped lang="scss">
	.lianxiWomen {
		min-height: 100%;

		.title {
			width: 100%;
			height: 176rpx;
			padding-top: 110rpx;
			box-sizing: border-box;
			// background-color: red;
			display: flex;
			align-items: center;
			font-size: 32rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
			line-height: 38rpx;
			padding-left: 34rpx;
			box-sizing: border-box;

		}

		.lianxiwomenbox {
			height: 536rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			margin-top: 80rpx;
			justify-content: space-between;

			.lianxiwomenboxitem {
				display: flex;
				align-items: center;

				.lianxiwomenboxitemimg {
					width: 48rpx;
					height: 48rpx;
				}

				.lianxiwomenboxitemtext {
					font-size: 30rpx;
					font-family: PingFang SC-Bold, PingFang SC;
					font-weight: bold;
					color: #333333;
					line-height: 35rpx;
					margin-left: 20rpx;
				}
			}

			.ewmboximg {
				width: 296rpx;
				height: 296rpx;
			}

			.desc {
				font-size: 28rpx;
				font-family: PingFang SC-Regular, PingFang SC;
				font-weight: 400;
				color: #999999;
				line-height: 33rpx;
			}
		}
	}
</style>